package StudyCode.summary.Basic.stringbuffer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBufferReplace {
	public static void main(String[] args) {
		StringBuffer sb = new StringBuffer("Hello World By Java");
		System.out.println("替换前:" + sb);
		sb.replace(0, 5, "Hi");
		System.out.println("替换后:" + sb);
	}
}
